home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / MacPerl ƒ / Perl Source ƒ / MacPerl / MPWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-16  |  1.7 KB  |  70 lines  |  [TEXT/MPS ]

  1. /*********************************************************************
  2. Project    :    MacPerl            -    Real Perl Application
  3. File        :    MPWindow.h        -
  4. Author    :    Matthias Neeracher
  5.  
  6. A lot of this code is borrowed from 7Edit written by
  7. Apple Developer Support UK
  8.  
  9. Started    :    17Mar93                                Language    :    MPW C
  10. Modified    :    29May93    MN    Compiles correctly
  11.                 30May93    MN    Support Console Windows
  12.                 05Aug93    MN    Show window status
  13.                 24Aug93    MN    DoContent needs EventRecord *
  14. Last        :    24Aug93
  15. *********************************************************************/
  16.  
  17. #ifndef __MPWINDOW__
  18. #define __MPWINDOW__
  19.  
  20. #include <Memory.h>
  21. #include <Types.h>
  22. #include <QuickDraw.h>
  23. #include <Fonts.h>
  24. #include <ToolUtils.h>
  25. #include <Traps.h>
  26. #include "MPGlobals.h"
  27. #include "MPUtils.h"
  28. #include "MPEditions.h"
  29. #include "MPAppleEvents.h"
  30.  
  31. pascal DPtr DPtrFromWindowPtr(WindowPtr w);
  32.  
  33. pascal void MyGrowWindow(WindowPtr w,
  34.                          Point     p);
  35.  
  36. pascal void DoZoom(WindowPtr w, short c, Point p);
  37.  
  38. pascal void DoContent(WindowPtr theWindow, EventRecord * theEvent);
  39.  
  40. pascal OSErr DoActivate(WindowPtr theWindow, Boolean   activate);
  41.  
  42. pascal void DoUpdate(DPtr theDoc);
  43.  
  44. pascal DPtr NewDocument(Boolean isForOldDoc, WindowKind kind);
  45.  
  46. pascal void CloseMyWindow(WindowPtr aWindow);
  47.  
  48. pascal void ShowSelect(DPtr theDoc);
  49.  
  50. pascal void AdjustScrollbars(DPtr theDoc, Boolean needsResize);
  51.  
  52. pascal void GetWinContentRect(WindowPtr theWindow, Rect *r);
  53.  
  54. pascal void ResizeWindow(DPtr theDoc);
  55.  
  56. pascal void ResizePageSetupForDocument(DPtr theDoc);
  57.  
  58. pascal void InvalidateDocument(DPtr theDoc);
  59.  
  60. pascal void DrawPageExtras(DPtr theDoc);
  61.  
  62. pascal void PrintWindow(DPtr theDoc, Boolean askUser);
  63.  
  64. pascal void ShowWindowStatus();
  65.  
  66. pascal void DoShowWindow(WindowPtr win);
  67.  
  68. pascal void DoHideWindow(WindowPtr win);
  69.  
  70. #endif